from django.urls import path, re_path
from . import views

urlpatterns = [
    re_path(r'^xhr', views.xhr, name='xhr'),
    re_path(r'^get-xhr', views.get_xhr, name='get_xhr'),
    # re_path('get-xhr-server', views.get_xhr_server, name='get_xhr_server'),
    path('get-xhr-server', views.get_xhr_server),
    path('reg', views.register, name='register'),
    # re_path(r'^checkuname', views.checkuname, name='checkuname'), 这种方式显然不行,用Ajax会提示找不到路由
    re_path(r'^checkuname/', views.checkuname, name='checkuname'),
    re_path(r'^make_post/', views.make_post, name='make_post'),
    re_path(r'^getuser_list/', views.getuser_list, name='getuser_list'),
    re_path(r'^getuser_listsc/', views.getuser_listsc, name='getuser_listsc'),
]